package com.chinaums.fsp.sdk.request;

import com.chinaums.fsp.base.pgt.TransType;
import com.chinaums.fsp.sdk.base.RequestData;
import com.chinaums.fsp.sdk.base.ResponseDataWrapper;
import com.chinaums.fsp.sdk.pgt.params.DraftEndorseRequest;
import com.chinaums.fsp.sdk.pgt.params.DraftEndorseResponse; 
/**
 * 汇票交易核验查询
 * @author hhh
 */
public class DraftEndorseTest extends BaseRequest{

//	/* 测试汇票交易核验查询1 */
	public void testDraftEndorseRequest1() throws Exception {
//		
//		PgtRequestFactory rf = FACTORY.factory();
//		
//		RequestData.Builder builder = this.createRequestDataBuilder();
//		builder.setTransType(TransType.TRANSACTION_ENDORSE.getTransCode());
//		
//		DraftEndorseRequest data = DraftEndorseRequest.newBuilder()
//															.setOrigServerTransId("1101012020033009533273428000") //sid 背书中，返回审核中，并插入核验数据
////															.setOrigServerTransId("1101012017042410430296759217") //sid 交易成功
////															.setOrigServerTransId("1201012017042016401710083586") //sid 交易类型错误
////															.setOrigServerTransId("1101012017041815212593433927") //sid 交易失败
//															.build()
//															;
//		rf.transType(TransType.TRANSACTION_ENDORSE.getTransCode())
//		.responseClass(DraftEndorseResponse.class)
//		.data(data)
//		;
//		ResponseDataWrapper rdw = rf.post();
//	
//		this.print(rdw);
	}
	
	/* 测试汇票交易核验查询2 */
//	public void testDraftEndorseRequest2() throws Exception {
//		
//		PgtRequestFactory rf = FACTORY.factory();
//		
//		RequestData.Builder builder = this.createRequestDataBuilder();
//		builder.setTransType(TransType.TRANSACTION_ENDORSE.getTransCode());
//		
//		DraftEndorseRequest data = DraftEndorseRequest.newBuilder()
//															.setOrigClientTransId("20190528110639543490") //cid 背书中，返回审核中，并插入核验数据
////															.setOrigClientTransId("20170424103509533008") //cid 交易成功
////															.setOrigClientTransId("20170420164017614657") //cid 交易类型错误
////															.setOrigClientTransId("20170418152124794808") //cid 交易失败
//				.build()
//				;
//		rf.transType(TransType.TRANSACTION_ENDORSE.getTransCode())
//		.responseClass(DraftEndorseResponse.class)
//		.data(data)
//		;
//		ResponseDataWrapper rdw = rf.post();
//		
//		this.print(rdw);
//	}
	
	
}